tools/blktap, blktap2: include <sys/mount.h> instead of <linux/fs.h>
authorIan Campbell <ian.campbell@citrix.com>
Mon, 17 Jan 2011 17:14:20 +0000 (17:14 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 17 Jan 2011 17:14:20 +0000 (17:14 +0000)
commita4f86af3e4d955172d35f2b5b4db95288d6138ff
tree9273cffb809efa321cff6cf9468ee825f2666830
parent342e60022d93d0ffb79e365a0240ceb690d2044f
tools/blktap, blktap2: include <sys/mount.h> instead of <linux/fs.h>

The former is a userspace sanitised header which contains the
definitions we need. In some distros linux/fs.h defines WRITE which
conflicts with blktaps own use of that name.

Also there is no reason to use <linux/errno.h> over the more normal
<errno.h>.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/blktap/drivers/blk_linux.c
tools/blktap2/drivers/blk_linux.c